package ooday04;

public class InterfaceDemo {
    public static void main(String[] args) {
        //Inter o =new Inter();
    }
}

interface Inter{
    public abstract void show();
    void test();



    interface Inter1{
        void show();
        void test();
    }
    class Aoo implements Inter1{
        public void show(){}
        public void test(){}
    }

    interface Inter2{
        void show();
    }
    interface Inter3{
        void test();
    }
    abstract class Boo{
        abstract void say();
    }
    class Coo extends Boo implements Inter2,Inter3{
        public void show(){}
        public void test(){}
        void say(){}
    }

    interface Inter4{
        void show();
    }
    interface Inter5 extends Inter4{
        void test();
    }
    class Doo implements Inter5{
        public void show(){}
        public void test(){}
    }













/*
//演示接口的语法
interface Inter{
    public abstract void show();
    void test();
    //void  say(){}//编译错误，抽象方法不能有方法体

    //演示接口的实现
    interface Inter1{
        void show();
        void test();
    }
    class Aoo implements Inter1{
        public void show(){}//重写接口中的方法，必须加public
        public void test(){}
    }
    //演示接口多实现
    interface Inter2{
        void show();
    }
    interface Inter3{
        void test();
    }
    abstract class Boo{
        abstract void say();
    }
    class Coo extends Boo implements Inter2,Inter3{
        public void show(){}
        public void test(){}
        void say(){}
    }
    //演示接口继承
    interface Inter4{
        void show();
    }
    interface Inter5 extends Inter4{
        void test();
    }
    class Doo implements Inter5{
        public void show(){}
        public void test(){}
    }


 */













}

